<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"   
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"

      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      >
    <h:body>

        <ui:composition template="/WEB-INF/templates/commonLayout.xhtml">

            <ui:define name="content">
                <!--<div class="title">--> 
                    <!--                    <h:outputLabel id="sortingTitle">Fibonacci sequence</h:outputLabel>-->

                <!--</div>-->

                <h:form>  
                    <p:panel id="panel" header="Eratosthenes">  
                        <p:messages id="msgs"/>  
                        <br/>
                        <h:outputLabel for="eratosthenesInput" value="Limit: " style="font-weight:bold"/>  

                        <p:inputText id="eratosthenesInput" value="#{factoryService.problem.value}">
                            <f:convertNumber integerOnly="true" type="number"/>
                            <f:validateLongRange maximum="2147483647"/>
                        </p:inputText>
                        <div>
                        <p:commandButton styleClass="runSchedulerBT" value="Run Scheduler" action="#{fileUploadBackingBean.runScheduler}" update="panel"/>
                        </div>
                    </p:panel>
                </h:form>  
            </ui:define>
        </ui:composition>

    </h:body>

</html>